Dynomotion

Group: DynoMotion Message: 1777 From: Troy Date: 9/8/2011
Subject: testing closed loop steppers

Hello again

I have my stepper motor hooked up with an encoder on the back of it, and now I want to test it. 

So far all I have hooked it up to Mach3 and tunned the motor to fast to see if a stall will shut things down, and it doesn't it just stalls until  the end of the move.  My impression was that if you missed more then the following error (mine is 500, and all my other settings match the closed loop stepper help file) all motion was supposed to stop.

I think I have everything pluged in correctly when I move it on the test response screen I get the command and position graphs overlapping each other perfectly and if I unplug my encoder the graphs don't overlap.  (to get it to do this I had to press the zero key located in the servo box on the step response screen.( I don't know if this is correct but until I did that the graphs were on different sides of zero)

Is there a better way to test my closed loop system, my main goal is to get everything to stop if there is a missed step, any corrections after that would be icing on the cake, but I would be happy with everything stopping if steps are missed.

Thanks


Group: DynoMotion Message: 1778 From: Tom Kerekes Date: 9/8/2011
Subject: Re: testing closed loop steppers
Hi Troy,
 
That is certainly possible.  Following errors do not trigger a fault in open loop Step/Dir mode.  You must set the Output Mode on the Config Screen to "CL Step".  If you don't want any closed loop corrections to be made set the PID gains to all zero.
 
Regards
TK

--- On Thu, 9/8/11, Troy <groups@...> wrote:

From: Troy <groups@...>
Subject: [DynoMotion] testing closed loop steppers
To: dynomotion@yahoogroups.com
Date: Thursday, September 8, 2011, 4:46 PM

 

Hello again

I have my stepper motor hooked up with an encoder on the back of it, and now I want to test it. 

So far all I have hooked it up to Mach3 and tunned the motor to fast to see if a stall will shut things down, and it doesn't it just stalls until  the end of the move.  My impression was that if you missed more then the following error (mine is 500, and all my other settings match the closed loop stepper help file) all motion was supposed to stop.

I think I have everything pluged in correctly when I move it on the test response screen I get the command and position graphs overlapping each other perfectly and if I unplug my encoder the graphs don't overlap.  (to get it to do this I had to press the zero key located in the servo box on the step response screen.( I don't know if this is correct but until I did that the graphs were on different sides of zero)

Is there a better way to test my closed loop system, my main goal is to get everything to stop if there is a missed step, any corrections after that would be icing on the cake, but I would be happy with everything stopping if steps are missed.

Thanks


Group: DynoMotion Message: 1782 From: Troy Date: 9/9/2011
Subject: Re: testing closed loop steppers
Hi Tom

That was it I had triple checked all my setting but I still missed the cl step mode.  After turning that on I  have a closed loop stepper. 

So now in mach 3 if I force it to miss steps the motor stops and in the status bar in Mach3 I get," Dynomotion Stats:All Axes Disabled"

After it stalls the reset button in Mach 3 does nothing, I have to go back into kmotion and press the enable button in the step response screen.  Is there a way to enable the motor again in Mach3?

Thanks
Troy

Group: DynoMotion Message: 1783 From: Tom Kerekes Date: 9/9/2011
Subject: Re: testing closed loop steppers
Hi Troy,
 
Reset should re-enable the axes. 
 
Do you have Reset configured to run your init program?
 
Do you enable the axes in your init program with:
   
EnableAxis(0);
EnableAxis(1);
EnableAxis(2);
 
 
Note that after you stall/miss step and re-enable the Commanded Destinations are set to the Encoder Positions so no there is no loss in position and no need- to re-home.
 
Regards
TK  
 
 


--- On Fri, 9/9/11, Troy <groups@...> wrote:

From: Troy <groups@...>
Subject: Re: [DynoMotion] testing closed loop steppers
To: DynoMotion@yahoogroups.com
Date: Friday, September 9, 2011, 3:32 PM

 
Hi Tom

That was it I had triple checked all my setting but I still missed the cl step mode.  After turning that on I  have a closed loop stepper. 

So now in mach 3 if I force it to miss steps the motor stops and in the status bar in Mach3 I get," Dynomotion Stats:All Axes Disabled"

After it stalls the reset button in Mach 3 does nothing, I have to go back into kmotion and press the enable button in the step response screen.  Is there a way to enable the motor again in Mach3?

Thanks
Troy